import { RouteObject } from "react-router-dom";

// 路由源信息接口
export interface RouteMeta {
  key?: string;
  icon?: string;
  title?: string;
  activeMenu?: string;
  isHide?: boolean;
  hideChildrenInMenu?: boolean;
}

// 路由对象类型
export type RouteItemType = Omit<RouteObject, "children"> & {
  path?: string;
  name?: string;
  redirect?: string;
  meta?: RouteMeta;
  children?: RouteItemType[];
};
